public class Student {
    public String name;
    public int age;
    public  double score;
    public  String gender;
    public  void Doclass(){
        System.out.println(name+"在上课");
    }
    public void Dohomework(){
        System.out.println(name+"快来写作业");
    }
    public void Exam(){
        System.out.println(name+"考的非常好");
    }

    public static void main(String[] args) {
        Student S=new Student();
        S.name="小鑫";
        S.age=18;
        S.score=100;
        S.gender="男";
        S.Doclass();
        S.Dohomework();
        S.Exam();
        Student X=new Student();
        X.name="小妍";
        X.age=17;
        X.gender="女";
        X.Doclass();
        X.Dohomework();
        X.Exam();
        S.printStudent();
        X.printStudent();
    }
    public void printStudent(){
        System.out.println(name+"/"+age+"/"+gender+"/"+score);
    }
}
public class Student {
    public String name;
    public int age;
    public  double score;
    public  String gender;
    public  void Doclass(){
        System.out.println(name+"在上课");
    }
    public void Dohomework(){
        System.out.println(name+"快来写作业");
    }
    public void Exam(){
        System.out.println(name+"考的非常好");
    }

    public static void main(String[] args) {
        Student S=new Student();
        S.setinformation("小鑫",18,100,"男");
        S.printStudent();
        S.Doclass();
        S.Dohomework();
        S.Exam();
        Student X=new Student();
        X.setinformation("小妍",18,98,"女");
        X.printStudent();
        X.Doclass();
        X.Dohomework();
        X.Exam();

    }
    public void printStudent(){
        System.out.println(name+"/"+age+"/"+gender+"/"+score);
    }
    public void setinformation(String name,int age, double score,String gender){
        this.name=name;
        this.age=age;
        this.score=score;
        this.gender=gender;
    }
}